/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package anttasks.mouse;

import java.awt.Robot;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

/**
 *
 * @author Hue
 */
public abstract class MouseTask extends Task {
    protected Robot robot;
    protected int x;
    protected int y;
    
    @Override
    public void init() throws BuildException {
        super.init();
        try {
            robot = new Robot();
        }
        catch(Exception ex) {
            throw new BuildException(ex);
        }
    }
    
    public void setX(int x) {
        this.x = x;
    }
    
    public void setY(int y) {
        this.y = y;
    }
}
